//package com.example.springalibabacloudprovider01.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.oauth2.client.registration.ClientRegistration;
//import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository;
//import org.springframework.security.oauth2.client.registration.InMemoryClientRegistrationRepository;
//import org.springframework.security.oauth2.core.AuthorizationGrantType;
//
//@Configuration
//public class OAuth2Config {
//
//    @Bean
//    public ClientRegistrationRepository clientRegistrationRepository() {
//        return new InMemoryClientRegistrationRepository(
//                ClientRegistration.withRegistrationId("wuzzClientId")
//                        .clientId("wuzzClientId")
//                        .clientSecret("wuzzSecret")
//                        .authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE)
//                        .redirectUriTemplate("{baseUrl}/login/oauth2/code/{registrationId}")
//                        .scope("all")
//                        .authorizationUri("http://test-pc.com:8006/oauth2/authorize")
//                        .tokenUri("http://test-pc.com:8006/oauth/token")
//                        .userInfoUri("http://test-pc.com:8006/auth/users/current")
//                        .clientName("wuzzClientId")
//                        .build()
//        );
//    }
//}
